<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
    .box{
      width: 400px;
      height: 400px;
      background-color: aqua;
    }
  </style>
</head>
<body>
  <div class="box"></div>
</body>
<script src='./js/zepto.js'></script>
<script src='./js/touch.js'></script>
<script>
$('.box').on('tap',function(){
  console.log(123);
})
$('.box').on('swipeLeft',function(){
  console.log(456);
  $(this).css('backgroundColor','red');
})
$('.box').on('swipeRight',function(){
  console.log(789);
  $(this).css('backgroundColor','blue');
})
$('.box').on('swipeUp',function(){
  console.log(369);
  $(this).css('backgroundColor','green');
})
// $('.box').on('swipeUp',function(){
//   $(this).cse('backgroundColor','blue');
// })

//swipe, swipeLeft, swipeRight, swipeUp, swipeDown
</script>
</html>